package com.xy.excel;

import com.xy.service.IViewerService;
import lombok.RequiredArgsConstructor;
import org.springblade.core.excel.support.ExcelImporter;

import java.util.List;


@RequiredArgsConstructor
public class ViewerImporter implements ExcelImporter<ViewerExcel> {

	private final IViewerService viewerService;

	@Override
	public void save(List<ViewerExcel> data) {
		viewerService.importUser(data);
	}
}
